/**
 * 最大公约数
 */

import java.util.Scanner;


public class LeastCommonMultiple {
    public static void main(String[] argv) {
        Scanner scan = new Scanner(System.in);
        int num1 = scan.nextInt();
        int num2 = scan.nextInt();

        System.out.println(num1 * num2 / gcd(num1, num2));
    }

    private static int gcd(int num1, int num2) {
        int tmp;
        if (num1 < num2) {
            tmp = num1;
            num1 = num2;
            num2 = tmp;
        }
        while (num2 > 0) {
            tmp = num2;
            num2 = num1 % num2;
            num1 = tmp;
        }
        return num1;
    }
}
